/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package com.pancho;

import java.io.Serializable;
public class User implements Serializable {
	public User() {
	}
	
	private int codUser;
	
	private String usname;
	
	private String passkey;
	
	private com.pancho.BabyMonitor babyMonitor;
	
	private void setCodUser(int value) {
		this.codUser = value;
	}
	
	public int getCodUser() {
		return codUser;
	}
	
	public int getORMID() {
		return getCodUser();
	}
	
	public void setUsname(String value) {
		this.usname = value;
	}
	
	public String getUsname() {
		return usname;
	}
	
	public void setPasskey(String value) {
		this.passkey = value;
	}
	
	public String getPasskey() {
		return passkey;
	}
	
	public void setBabyMonitor(com.pancho.BabyMonitor value) {
		if (this.babyMonitor != value) {
			com.pancho.BabyMonitor lbabyMonitor = this.babyMonitor;
			this.babyMonitor = value;
			if (value != null) {
				babyMonitor.setUserCodUser(this);
			}
			else {
				lbabyMonitor.setUserCodUser(null);
			}
		}
	}
	
	public com.pancho.BabyMonitor getBabyMonitor() {
		return babyMonitor;
	}
	
	public String toString() {
		return String.valueOf(getCodUser());
	}
	
}
